package cn.edu.nit.sys.service;

import cn.edu.nit.sys.entity.Forum;
import cn.edu.nit.sys.entity.ForumLog;
import cn.edu.nit.sys.utils.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @Author 罗文斌
 * @Date 2023/4/11
 * @Version 1.0.0
 */
public interface ForumService extends IService<Forum> {
    R addForum(Forum forum);

    R getApproveList(Page<Forum> page, String siftName, String siftStatus, String startTime, String endTime, String uid);

    R approveForum(ForumLog forumLog);

    R getDetail(String id, String uid);

    R getForumComment(Page<Map<String, String>> page, String id);

    R addForumComment(Map<String, String> params);

    R delComment(String id);

    void plusView(String id, String uid);

    R forumLikes(String fid, String uid);
}
